﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SiGeSIB.Data.Common;

namespace SiGeSIB.GUI.Common
{
	public partial class FSelectInterval : Form
	{
		public FSelectInterval()
		{
			InitializeComponent();

			uDateTimeIntervalPicker1.IntervalChanged += new EventHandler(_OnIntervalChanged);
		}

		public DateTimeInterval Interval
		{
			get
			{
				return uDateTimeIntervalPicker1.Interval;
			}
		}

		private void _OnIntervalChanged(object sender, EventArgs args)
		{
			btnSelect.Enabled = Interval != null;
		}
	}
}
